package cn.tedu.sims.mapper;

import cn.tedu.sims.pojo.entity.User;
import cn.tedu.sims.pojo.entity.UserRole;
import org.springframework.stereotype.Repository;

/**
 * 角色对应用户的Mapper
 */
@Repository
public interface UserRoleMapper {
    /**
     * 添加对应关系
     * @param userRole
     * @return
     */
    int insert(UserRole userRole);

    int update(UserRole userRole);

    UserRole location(Long id);
}
